package com.wr.hangzhounewlight.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wr.hangzhounewlight.obj.database.OutputSlaveEntity;
import com.wr.hangzhounewlight.obj.vo.frontend.OutputSelectVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/18
 */
public interface OutputSlaveMapper extends BaseMapper<OutputSlaveEntity> {

    @Select("""
            select silo, output
            from output_slave
            where output_master_id = #{outputMasterId}
            group by id;
            """)
    List<OutputSelectVO.Output> selectOutputVO(String outputMasterId);

}
